public class Test1 {
    String s1="holle world";
    String s2="this is a person";

    public static void main(String[] args) {
        Test1 t=new Test1();
        System.out.println(t.s1.charAt(6));
    }

    public static void main1(String[] args) {
        Test1 t=new Test1();
        System.out.println(t.s1.indexOf("w", 2));
        System.out.println(t.s1.indexOf("w", 7));
        System.out.println(t.s1.lastIndexOf("w",2));
        System.out.println(t.s1.lastIndexOf("w"));
        System.out.println(t.s1.contains("holle "));
        t.s1.charAt(2);


    }
}
